<?php

require_once "../../inc/common.inc.php";
include (NCG_DLL.'timer.func.php');
//cachePage();
Timer();
$arr = $db->get_one("SELECT id, name, sex, age, email FROM User Where id=3");
$users = $db->get_all("SELECT id, name, sex, age, email FROM User");
$rowNum = $db->num_rows($db->query("SELECT id, name, sex, age, email FROM User"));
$title = '自定义模板引擎示例';
$teableName = '用户信息表';
$author = 'SkyWrold';
$newName = NCG_PATH.'files/userface/09122358';

if(isset($_POST[SUB]))
{
	$error = imageUpload('myfile',$newName);
	if($error==0)
		echo "上传成功";
	else
		echo "上传失败".$error;

	//unset($_POST[SUB]);
}
//include template('uploadtest.html');
include template('index.html');
Timer();
echo TimerNext();

?>
